package model.client.responsehandler;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import server.response.SendToIndividualsResponseMessage;

/**
 * @Description 输出服务器转发到客户端的单人信息
 * @author 14548
 */
public class SendToIndividualsResponseHandler extends
        SimpleChannelInboundHandler<SendToIndividualsResponseMessage> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, SendToIndividualsResponseMessage msg) throws Exception {
        String sender = msg.getSenderId();
        String message = msg.getMessage();
        System.out.println(sender + ": " + message);
    }
}
